<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <ul></ul>
  <script>
    let num = {};
    let url = `https://api.wmdb.tv/movie/api?id=35267224`
    const ajax = new XMLHttpRequest();
    ajax.open(`GET`, url)
    ajax.onreadystatechange = function () {
      if (ajax.readyState === 4 && ajax.status === 200) {
        num = JSON.parse(ajax.responseText)
        console.log(num);
        console.log(1);
      }
    }
    ajax.send
    function get() {
      console.log(num.data);
    }
  </script>
</body>

</html>